<template>
  <div>
    <div class="game_info">
      <div class="game_icon">
        <img :src="gameinfo.gameicon" alt="">
      </div>
      <div class="game_right">
        <div class="gamename">{{gameinfo.gamename}}</div>
        <div class="genre_str">
          <span>{{gameinfo.genrename}} | </span>
          <div class="str_right">
            <span v-if="this.gameinfo.game_type !== '3'"> [安卓:{{gameinfo.apksize || 0.0}}M]</span>
            <span v-else> H5游戏</span>
          </div>
        </div>
        <div class="game_summary">{{gameinfo.game_summary}}</div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    props: {
      gameinfo: {
        type: Object,
        default: {}
      },
    },
  }
</script>

<style scoped>
.game_info {
  width: 670px;
  height: 153px;
  padding: 40px;
  border-bottom: 12px solid #eee;
  display: flex;
}

.game_icon, 
.game_icon img {
  width: 153px;
  height: 153px;
  margin-right: 20px;
}

.game_right {
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 24px;
  color: #888;
}

.gamename {
  font-size: 32px;
  color: #333;
  font-weight: bold;
}

.game_summary {
  width: 497px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.genre_str {
  display: flex;
  align-items: center;
}

.str_right {
  padding-left: 10px;
}
</style>